export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.$router.beforeEach((to, from, next) => {
    console.log('Navigating from', from.path, 'to', to.path);
    const settingsStore = useSettingsStore();
    // 在这里添加你的路由拦截逻辑
    next();
  });
});